import request from '@/utils/request'

// 查询工作流的流程任务的拓展列表
export function listExt(query) {
  return request({
    url: '/flowable/ext/list',
    method: 'get',
    params: query
  })
}

// 查询工作流的流程任务的拓展详细
export function getExt(id) {
  return request({
    url: '/flowable/ext/' + id,
    method: 'get'
  })
}

// 新增工作流的流程任务的拓展
export function addExt(data) {
  return request({
    url: '/flowable/ext',
    method: 'post',
    data: data
  })
}

// 修改工作流的流程任务的拓展
export function updateExt(data) {
  return request({
    url: '/flowable/ext',
    method: 'put',
    data: data
  })
}

// 删除工作流的流程任务的拓展
export function delExt(id) {
  return request({
    url: '/flowable/ext/' + id,
    method: 'delete'
  })
}
